﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using QLNHDAO;

namespace QLNHBUS
{
    public class KhoBUS
    {
        public static Kho LayKho(int makho)
        {
            KhoDAO kDAO = new KhoDAO();
            Kho monan = kDAO.GetByID(makho);
            return monan;
        }

        public static List<Kho> LayDanhSachKhoChuaXoa()
        {
            KhoDAO kDAO = new KhoDAO();
            return kDAO.All().Where(m => m.Xoa == false).ToList();
        }

    }
}
